package com.yunxin.core.customer.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.util.Date;
import java.util.List;

@Data
public class OperationCustomerInfoDto {

    @Schema(description = "客户id")
    private Integer id;

    @Schema(description = "客户姓名")
    private String name;

    @Schema(description = "客户手机号")
    private String phone;

    @Schema(description = "标签id")
    private List<Long> tagIds;

    @Schema(description = "客户级别")
    private Integer level;

    @Schema(description = "客户分数")
    private Integer grade;

//    @Schema(description = "话务员最新跟进时间")
//    private Date lastFollowTime;

    @Schema(description = "拨打次数")
    private Integer callCount;

    @Schema(description = "客户在用平台")
    private String usePlatform;

    @Schema(description = "客户描述")
    private String describe;

    @Schema(description = "客户流失原因")
    private String runReason;

    @Schema(description = "业务员外呼状态")
    private Integer salesmanStatus;

    @Schema(description = "状态标签 0未跟进 11不需要 12秒挂 13非本人申请 14点着玩 21空号 22停机 3已添加 -11通话中 -12拒接 -13响铃挂 -14用户忙 ")
    private Integer telephonerStatus;

    @Schema(description = "业务员客户来源类型（个人,客服）")
    private String salesmanSourceType;

//    @Schema(description = "是否添加微信 0未添加 1已添加")
//    private Integer isWechat;

    @Schema(description = "话务员转交业务员时间")
    private Date telephonerToTime;

    @Schema(description = "成单时间")
    private Date createOrderTime;

    @Schema(description = "分配产品集合")
    private List<CustomerMatchingProductDto> matchingProductDtoList;

    @Schema(hidden = true)
    private Long createrId;

    @Data
    public static  class CustomerMatchingProductDto {

        @Schema(description = "匹配产品id")
        private Long matchingProductId;

        @Schema(description = "申请数量")
        private Integer count;

        @Schema(description = "-1.失败 0.申请中 1成功")
        private Integer status;

    }
}
